package com.yuzhi;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @ClassName MasterServletInitializer
 * @Author sunshine
 * @Date 2024-03-13 13:56:56
 * @Description 如果打成war包，此类可以在web容器中加载spring boot服务
 */
public class MasterServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(MasterApplication.class);
    }
}
